def is_palindrome(string):
    length = len(string)
    if length % 2 == 1:
        return False
    for i in range(int(length/2)):
        if string[i] != string[length-i-1]:
            return False
    return True
print(is_palindrome("qwerrewq"))


